package Main;

import controller.Controller;
import model.Model;
import view.MainView;

public class RunMVC {
	
	public RunMVC() {

		// Creo los modulos que van a correr en threads
		
		Controller cont = new Controller();
		MainView view = new MainView(cont);
		Model model = new Model(cont);
		cont.setModules(view, model);

		
		// Creo los threads
		
		Thread ThreadViewManager = new Thread(view);
		Thread ThreadModel = new Thread(model);
		Thread ThreadController = new Thread(cont);
		
		ThreadViewManager.start();
		ThreadModel.start();
		ThreadController.start();
	}
}
